package com.woaigsc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by chuiyuan on 3/16/16.
 */
@Controller
public class WebController {

    @RequestMapping(value = "/index1", method = RequestMethod.GET)
    public String index1 (){
        return "index";
    }

    @RequestMapping(value = "/redirect",method = RequestMethod.GET)
    public String redirect(){
        return "redirect:finalPage";
    }

    @RequestMapping(value = "finalPage",method = RequestMethod.GET)
    public String finalPage(){
        return "final" ;
    }
}
